# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([RTx::AssetTracker],[0.9.0],[todd@chaka.net])

AC_CONFIG_SRCDIR([lib/RTx/AssetTracker.pm.in])

# Checks for programs.
#AC_PROG_INSTALL

AC_ARG_WITH(rt-lib,
            AC_HELP_STRING([--with-rt-lib=/path/to/rt/lib],
                           [path to your rt lib dir]),
            RT_LIB_PATH=$withval,
            RT_LIB_PATH=/opt/rt3/lib)
AC_SUBST(RT_LIB_PATH)

AC_ARG_WITH(rt-local,
            AC_HELP_STRING([--with-rt-local=/path/to/rt/local],
                           [path to your rt local dir]),
            RT_LOCAL_PATH=$withval,
            RT_LOCAL_PATH=/opt/rt3/local)
AC_SUBST(RT_LOCAL_PATH)

AC_ARG_WITH(rt-localhtml,
            AC_HELP_STRING([--with-rt-localhtml=/path/to/rt/localhtml],
                           [path to your rt local html  dir]),
            RT_LOCALHTML_PATH=$withval,
            RT_LOCALHTML_PATH=/opt/rt3/localhtml)
AC_SUBST(RT_LOCALHTML_PATH)

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES([
		 Makefile
		 sbin/at-setup-database
		 sbin/at_factory
		 lib/RTx/AssetTracker.pm],
		[chmod ug=rx,o= sbin/at-setup-database
		 chmod ug=rx,o= sbin/at_factory
		]
	       )
AC_OUTPUT
